package org.csu.mypetstore.api.service;

import org.csu.mypetstore.api.common.CommonResponse;
import org.csu.mypetstore.api.entity.Category;
import org.csu.mypetstore.api.entity.Product;
import org.csu.mypetstore.api.vo.ItemVO;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;

public interface CatalogService {

    public CommonResponse<List<Category>> getCategoryList();

    public CommonResponse<Category> getCategoryById(String categoryId);

    public CommonResponse<List<Product>> getProductListByCategoryId(String categoryId);

    public CommonResponse<Product> getProductById(String productId);

    public CommonResponse<List<ItemVO>> getItemListByProductId( String productId );

    public CommonResponse<List<Product>> searchProductList(String keyword);

    public CommonResponse<List<Product>> getAllProductList();



}
